//召唤兽改名 {"名称":"野猪1","序列":1}
// @ts-ignore
export async function execute(client_id,message_json) {
    let login_characters = G.Characters.get_current_login_characters(client_id);
    let index = message_json["序列"]-1;
    let pet_data = login_characters["召唤兽"][index];
    if(pet_data === undefined){
        ClientUtils.send_basic_prompt(client_id, "召唤兽不存在");
        return;
    }
    pet_data["名称"]=message_json["名称"];
    ClientUtils.send_basic_prompt(client_id, "改名成功");
    ClientUtils.send_client_message(client_id, 16, login_characters["召唤兽"]);
}